<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/5/18
  Time: 16:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"   %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ne" uri="META-INF/ne.tld" %>

<% String path = request.getContextPath();
    request.setAttribute("path",path);
%>
<%
    int a = 10;
%>
<html>
  <head>
    <title>$Title$</title>
    <link rel="stylesheet" href="${path}/css/bootstrap.css">
  </head>
  <body>
        <div class="container">
            <ne:if test="${true}">
                <blockquote class="blockquote text-center">
                    <p class="mb-0">爱上一个地方，就应该背上包去旅行，走得更远。</p>
                    <footer class="blockquote-footer">出自商务印书馆的 <cite title="Source Title">《新华字典》</cite></footer>
                </blockquote>
            </ne:if>
            <table class="table table-dark table-striped table-hover text-center mt-2">
                <tr>
                    <td>编号</td>
                    <td>姓名</td>
                    <td>性别</td>
                    <td>年龄</td>
                </tr>
                <c:if test="${true}"></c:if>
                <c:choose>
                    <c:when test="${empty userList}">
                        <tr>
                            <td colspan="4" class="text-center">暂无数据展示</td>
                        </tr>
                    </c:when>
                    <c:otherwise>
                        <c:forEach items="${userList}" var="item">
                            <tr>
                                <td>${item.id}</td>
                                <td>${item.name}</td>
                                <td>${item.sex}</td>
                                <td>${item.age}</td>
                            </tr>
                        </c:forEach>
                    </c:otherwise>
                </c:choose>

            </table>
        </div>

  </body>
</html>
